package com.admin.education.dataTransferObject.answer.Mapper;

import com.admin.education.dataTransferObject.answer.AnswerTransfer;
import com.admin.education.models.Answers;
import com.admin.education.models.TemplateAnswers;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public abstract class AnswerMapper {
    @Mappings({})
    public abstract AnswerTransfer mapFrom(Answers answers);
    @Mappings({})
    public abstract List<AnswerTransfer> mapFrom(List<Answers> answers);
    @Mappings({})
    public abstract  AnswerTransfer mapFrom(TemplateAnswers answers);
    @Mappings({})
    public abstract  List<AnswerTransfer> mapFromTemplate(List<TemplateAnswers> answers);
}
